README file for the replication of 
"Preferences, constraints, and the process of
sex segregation in college majors: a choice analysis"

--------------
AUTHOR CONTACT (as of July 2015):

Fabian Ochsenfeld
Goethe University
Institute for Sociology
Theodor-W.-Adorno-Platz 6
60323 Frankfurt, Germany
Phone: +49.69.789.3661
E-mail: ochsenfeld@soz.uni-frankfurt.de

--------------
DATA:

The NEPS data can be obtained from the Leibniz Institute for Educational Trajectories.
To analyze detailed college majors, researchers need to apply for remote access.
(https://www.lifbi.de/en-us/home.aspx) 

The micro census data can be obtained from the research data center of the
Federal Statistical Office. 
(http://www.forschungsdatenzentrum.de/en/index.asp) 

The HIS graduate panel studies can be obtained from GESIS Datenarchiv f�r
Sozialwissenschaften under the study numbers 4272 and 5186.
(http://www.gesis.org/en/institute/gesis-scientific-departments/data-archive-for-the-social-sciences/)

--------------
DO-FILES:

There are 8 do files:
variables_census_his.do
master.do
variables.do
analysis.do
descriptives.do
robustness1_variables.do
robustness1_analysis.do
robustness2_analysis.do

--------------
HOW TO:

1. In "variables_census_his.do" the locals "dircensus" and "dirhis" need to be set to
	the directories where the census and his data can be found.
2. Run the dofile. It creates the dataset "fstats.dta".
3. Import "fstats.dta" into LifBi's remote access environment.
4. In the remote access environment, create the folders "Y:\Documents\Output\" and "Y:\Documents\Data\" therein.
5. Place "fstats.dta" in "Y:\Documents\Data\"
6. Run "master.do" which runs all remaining dofiles in the correct order and saves results and logfiles
	to "Y:\Documents\Output\".

--------------